﻿<UserControl x:Class="StopLight.StoplightView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="300">
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="20"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="10"></RowDefinition>
            <RowDefinition Height="20"></RowDefinition>
            <RowDefinition Height="8"></RowDefinition>
            <RowDefinition Height="20"></RowDefinition>
            <RowDefinition Height="8"></RowDefinition>
            <RowDefinition Height="20"></RowDefinition>
            <RowDefinition Height="20"></RowDefinition>
            <RowDefinition Height="20"></RowDefinition>
            <RowDefinition Height="10"></RowDefinition>
            <RowDefinition Height="20"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="40"></ColumnDefinition>
            <ColumnDefinition Width="150"></ColumnDefinition>
            <ColumnDefinition Width="150"></ColumnDefinition>
            <ColumnDefinition Width="20"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel x:Name="stopLightPanel" Background="Red" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2" 
                ></StackPanel>
        <TextBlock x:Name="greenDurationTextBlock" Text="Green Duration:" Grid.Column="1" Grid.Row="3" />
        <TextBox x:Name="greenDurationTextBox" Grid.Column="2" Grid.Row="3" />
        <TextBlock x:Name="yellowDurationTextBlock" Text="Yellow Duration:" Grid.Column="1" Grid.Row="5" />
        <TextBox x:Name="yellowDurationTextBox" Grid.Column="2" Grid.Row="5" />
        <TextBlock x:Name="redDurationTextBlock" Text="Red Duration:" Grid.Column="1" Grid.Row="7" />
        <TextBox x:Name="redDurationTextBox" Grid.Column="2" Grid.Row="7" />
        <Button x:Name="updateScheduleButton" Content="Update Schedule" 
                Grid.Column="1" Grid.Row="9" Grid.ColumnSpan="2" Width="200"
                Click="updateScheduleButton_Click" />
        <Button x:Name="forceChangeButton" Content="Change Light" Grid.Column="1" Grid.Row="11" Grid.ColumnSpan="2" Width="200"
                Click="forceChangeButton_Click" />
    </Grid>
</UserControl>
